home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / tools / x11 / Makefile
Encoding:
Makefile  |  1993-08-24  |  4.5 KB  |  190 lines

  1. TOPDIR = /home/oliver/data2/users/jin/src/wimsey/ccs-lib
  2. CONFIG = config.sgi
  3. HERE = tools/x11/
  4. CCS_ROOT = /home/oliver/data2/users/jin/src/wimsey/ccs-lib
  5.  
  6. # SGI 4 configuration file.
  7. # The file "makefile.hdr" contains code common to all makefiles.  It
  8. # should not be necessary to edit that file.
  9.  
  10. # DRIVERDIRS = Iris NeXT SunView X XView ctool sunanim xanim datacube adage
  11. DRIVERDIRS = SunView X XView ctool sunanim xanim
  12. CONTRIBDIRS = canny cc compress fsun imsor label lbl surrey usl uva verdth
  13. ANSI_PATH = $(TOPDIR)/jpeg
  14. HTDIRS = IRIX4.2
  15. XDIRS = lblx11 xhips
  16. XVDIRS = lblxview
  17.  
  18. DESTROOT = $(TOPDIR)/sun4
  19. DESTDIR = $(DESTROOT)/bin
  20. # LIBDIR = /usr/local/lib
  21. LIBDIR = $(DESTROOT)/lib
  22. # INCLUDE_DIR = /usr/include
  23. INCLUDE_DIR = $(DESTROOT)/include
  24. # MANDIR = /usr/man/mann
  25. MANDIR = $(DESTROOT)/man/mann
  26. MANEXT = n
  27. LIBMANDIR = /usr/man/mann
  28. LIBMANEXT = n
  29. TMPDIR = /tmp
  30.  
  31. FLOAT = 
  32. TARGET_ARCH = 
  33. FASTCOPY = 
  34.  
  35. CPPFLAGS = -I$(INCLUDE_DIR)
  36. LIBRARY2 = -l$(LIB)
  37. HLIBNAME = lib$(HLIB).a
  38. OTHERLIBS = -lm
  39. LDFLAGS = -L$(LIBDIR)
  40. CFLAGS = -O
  41.  
  42. ORIG = ULORIG
  43. BITORDER = MSBFVERSION
  44.  
  45. MANPRINT = psroff -Pps -man
  46. MEPRINT = psroff -Pps -me
  47. TBL = tbl
  48. EQN = eqn
  49. RANLIB = ls
  50. LORDER = lorder
  51. TSORT = tsort
  52. RM = rm
  53. XVIEWHOME = /usr/openwin
  54. LIBXVIEW = -lxview -lolgx -lX11
  55.  
  56. # Stuff you like to have removed from directories to "make clean"
  57. OTHERJUNK = core *~ \#* *BAK tmpansi.c
  58. ################ Beginning of makefile.hdr ################
  59. # Stuff that goes at the beginning of all the makefiles, but is not
  60. # configuration parameters, should be in this file.  It is included
  61. # after the configuration file, and before makefile.src.
  62.  
  63. DIRS =
  64. PGMS =
  65.  
  66. SHELL = /bin/sh
  67.  
  68. COMPILEc = $(CC) -D$(ORIG) -D$(BITORDER) $(CFLAGS) \
  69.     $(CPPFLAGS) $(TARGET_ARCH) $(FASTCOPY) $(FLOAT) -c
  70. LINKc = $(CC) -D$(ORIG) -D$(BITORDER) $(CFLAGS) \
  71.     $(CPPFLAGS) $(FLOAT) $(TARGET_ARCH) $(FASTCOPY) -o
  72. LIBRARIES = $(LDFLAGS) $(LIBRARY) $(OTHERLIBS)
  73.  
  74. .SUFFIXES:    .out
  75.  
  76. .c.o:
  77.     $(COMPILEc) $<
  78.  
  79. .c.out:
  80.     $(LINKc) $* $< $(LIBRARIES)
  81.     strip $*
  82.     mv $* $(DESTDIR)
  83.     @touch $@
  84. ################ End of makefile.hdr ################
  85. #
  86. # makefile for directory user-contributed/lbl/x11
  87. #
  88.  
  89. # Subdirectories that get made
  90.  
  91. DIRS = lib tuner
  92.  
  93. # default action just makes src dirs
  94.  
  95. all: install
  96.  
  97. clean clean-all install pristine man doc: doit
  98.     @for d in $(DIRS) ; do \
  99.         ( cd $$d ; echo make $@ on $(HERE)$$d ; make $(MFLAGS) $@ ) ; \
  100.     done
  101.  
  102. doit:
  103. ################ Beginning of makefile.tlr ################
  104. # Stuff that goes at the end of all the makefiles, but is not
  105. # configuration parameters should be in this file.  It is included
  106. # after makefile.src.
  107.  
  108. #config reads the configuration file and munches the appropriate make files
  109. config: doit
  110.     ${TOPDIR}/Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  111.  
  112. config-subdirs: doit
  113.     @-if test 'x$(DIRS)' != x ; then eval \
  114.         'for d in $(DIRS) ; do \
  115.             ( cd $$d ; \
  116.               echo Configuring ${HERE}$$d ; \
  117.               ${TOPDIR}/Configure "${CONFIG}" "${TOPDIR}" \
  118.                 "${HERE}$$d/" "${MFLAGS}" ) \
  119.         done' ; \
  120.     else \
  121.         true ; \
  122.     fi
  123.  
  124. doit:
  125.  
  126.  
  127. # Clean up installed stuff and binaries
  128. # pristine-pgm target invoked by pristine target in dirs that make programs
  129. pristine-pgm: clean-pgm
  130.     @-if test 'x$(PGMS)' != x ; then eval \
  131.         'for pgm in $(PGMS); do \
  132.             dpgm=`basename $$pgm .out`; \
  133.             echo rm -f $(DESTDIR)/$$dpgm ; \
  134.             rm -f $(DESTDIR)/$$dpgm ; \
  135.         done' ; \
  136.     else \
  137.         true ; \
  138.     fi
  139.  
  140. # Clean up binaries on program directories.
  141. clean-pgm:
  142.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) man-pgm libman-pgm
  143.  
  144. clean_all:
  145.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) *.a *-pgm Makefile
  146.  
  147. # Install program manual pages
  148. man-pgm: $(MANPAGES)
  149.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  150.     chmod u+w $(MANPAGES)
  151.     for i in $(MANPAGES) ; \
  152.     do \
  153.         cp $$i $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  154.     done
  155.     chmod u-w $(MANPAGES)
  156.     touch man-pgm
  157.  
  158. # Install library manual pages
  159. libman-pgm: $(MANPAGES)
  160.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  161.     chmod u+w $(MANPAGES)
  162.     for i in $(MANPAGES) ; \
  163.     do \
  164.         cp $$i $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  165.     done
  166.     chmod u-w $(MANPAGES)
  167.     touch libman-pgm
  168.  
  169. # Uninstall program manual pages
  170. pristineman-pgm:
  171.     for i in $(MANPAGES) ; \
  172.     do \
  173.         rm -f $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  174.     done
  175.     rm -f man-pgm
  176.  
  177. # Uninstall library manual pages
  178. pristinelibman-pgm:
  179.     for i in $(MANPAGES) ; \
  180.     do \
  181.         rm -f $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  182.     done
  183.     rm -f libman-pgm
  184.  
  185. makefile:: makefile.src
  186.     ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  187.  
  188. ################ End of makefile.tlr ################
  189.